Automattic\WooCommerce\StoreApi\Utilities\OrderController A

Total Complexity 58
Dependencies 8
Dependents 1
Total lines 536
Lines of code 349
Logical lines of code 130
Comment lines 132
Methods 16
Properties 0

Methods 16

Method Rating Maintainability Complexity Lines of code
validate_address_fields()
A
42 10 55
validate_addresses()
A
42 9 57
update_line_items_from_cart()
S
50 6 30
validate_coupons()
S
47 5 37
validate_selected_shipping_methods()
S
59 5 15
update_order_from_cart()
S
50 3 28
validate_email()
S
56 3 20
sync_customer_data_with_order()
S
49 2 31
validate_coupon_email_restriction()
S
68 4 6
validate_coupon_usage_limit()
S
63 4 10
create_order_from_cart()
S
58 2 16
update_addresses_from_cart()
S
51 1 27
validate_order_before_payment()
S
67 1 8
get_coupon()
S
80 1 3
validate_allowed_country()
S
79 1 3
default_order_status()
S
82 1 3